package exercise;

public class ChangeTwoNum {

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        //一行代码实现a、b的值互换
        a = (a+b) - (b=a);
        System.out.println("a:"+a+",b:"+b);

    }

}
